package com.chunayev.numerology.main;

import static com.chunayev.numerology.util.Constants.ALPHABETS_PROPERTIES;

import java.io.IOException;

/**
 * @author Sergey Chunayev
 */
public class WordSplitTest {
    
    /**
     * @param args
     * @throws IOException
     */
    public static void main(final String[] args) throws IOException {
        
        final String s = "      Sdafsfd; jjasdm  jasdf?!!!!\n\nasdff!!!!!;<>";
        final String[] tokens = s.trim().split(
                String.format("[^%s]+", ALPHABETS_PROPERTIES
                        .getProperty("en.regexp")));
        for (final String token : tokens) {
            System.out.println(token);
        }
    }
}
